package cn.com.shopec.erp.purchase.vo;

import java.io.Serializable;

/**
 * @ClassName: PurchaseRequisitionProductVo
 * @Description: 采购单请购商品虚拟表
 * @author: gaoyaxiong
 * @date: 2013-5-21 下午18:14:13
 */
public class PurchaseRequisitionProductVo implements Serializable {
	
	private static final long serialVersionUID = 1L;
	/** id **/
	private String id;
	/** 采购单号 **/
//	private String prNo;
	private String poNo;
	/** 商品名称 **/
	private String ppName;
	/** 货品编码 **/
	private String productNo;;
	/** 规格 **/
	private String ppSpecification;
	/** 单位 **/
	private String ppUnit;
	/** 请购数量 **/
	private Integer ppNumber;
	/** 供应商编码 **/
	private String ppSupplierNo;
	/** 供应商名称 **/
	private String ppSupplierName;
	/** 仓库编号 **/
	private String ppWarehouseNo;
	/** 仓库名称 **/
	private String ppWarehouseName;
	/** 成本价 **/
	private String ppUnitPrice;
	/** 删除 **/
	private Integer deleteFlag;
	/** 请购总价 **/
	private String totalPrice;
	/** 货品零售价 **/
	private String salePrice;
	/** 最低订货数量 **/
    private Integer buyNum;
    /**货品条码**/
	private String prodBarCode;
	/**商品编号**/
	private String commodityNo;
	/**退货原因(采购单退货)**/
	private String returnDesc;
	/**退货描述(采购单退货)**/
	private String description;
	/**退货数量**/
	private int returnNumber;
	/**退货状态锁(0.默认可退货1.退货中)***/
	private int retunStatus;
	/** 入库总数 **/
	private long commonNumner;
	/** 剩余总数数量 **/
	private long remainingAmount;
	/** 良品数 **/
	private long yieldAmountNumner;
	/** 次品数 **/
	private long defectiveAmountNumber;
	/**保质期**/
	private String shelfLife;
	/**货品出厂日期**/
	private String manufactureTime;
	/**采购单名称***/
	private String poName;
	/**采购单创建时间**/
	private String poCreateTime;
	/**货品创建时间**/
	private String prCreateTime;
	/**良品*/
	private long qualifiedQuantity;
	/**预占数*/
	private long preOccupyQuantity;  
	
	public long getYieldAmountNumner() {
		return yieldAmountNumner;
	}
	public void setYieldAmountNumner(long yieldAmountNumner) {
		this.yieldAmountNumner = yieldAmountNumner;
	}
	public long getDefectiveAmountNumber() {
		return defectiveAmountNumber;
	}
	public void setDefectiveAmountNumber(long defectiveAmountNumber) {
		this.defectiveAmountNumber = defectiveAmountNumber;
	}
	public String getReturnDesc() {
		return returnDesc;
	}
	public void setReturnDesc(String returnDesc) {
		this.returnDesc = returnDesc;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	/*public String getPrNo() {
		return prNo;
	}
	public void setPrNo(String pRNo) {
		this.prNo = pRNo;
	}*/
	public String getPpName() {
		return ppName;
	}
	public void setPpName(String ppName) {
		this.ppName = ppName;
	}
	public String getProductNo() {
		return productNo;
	}
	public void setProductNo(String productNo) {
		this.productNo = productNo;;
	}
	public String getPpSpecification() {
		return ppSpecification;
	}
	public void setPpSpecification(String ppSpecification) {
		this.ppSpecification = ppSpecification;
	}
	public String getPpUnit() {
		return ppUnit;
	}
	public void setPpUnit(String ppUnit) {
		this.ppUnit = ppUnit;
	}
	public Integer getPpNumber() {
		return ppNumber;
	}
	public void setPpNumber(Integer ppNumber) {
		this.ppNumber = ppNumber;
	}
	public String getPpSupplierNo() {
		return ppSupplierNo;
	}
	public void setPpSupplierNo(String ppSupplierNo) {
		this.ppSupplierNo = ppSupplierNo;
	}
	public String getPpSupplierName() {
		return ppSupplierName;
	}
	public void setPpSupplierName(String ppSupplierName) {
		this.ppSupplierName = ppSupplierName;
	}
	public String getPpWarehouseNo() {
		return ppWarehouseNo;
	}
	public void setPpWarehouseNo(String ppWarehouseNo) {
		this.ppWarehouseNo = ppWarehouseNo;
	}
	public String getPpWarehouseName() {
		return ppWarehouseName;
	}
	public void setPpWarehouseName(String ppWarehouseName) {
		this.ppWarehouseName = ppWarehouseName;
	}
	public String getPpUnitPrice() {
		return ppUnitPrice;
	}
	public void setPpUnitPrice(String ppUnitPrice) {
		this.ppUnitPrice = ppUnitPrice;
	}
	public Integer getDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	public String getTotalPrice() {
		return totalPrice;
	}
	public void setTotalPrice(String totalPrice) {
		this.totalPrice = totalPrice;
	}
	public String getSalePrice() {
		return salePrice;
	}
	public void setSalePrice(String salePrice) {
		this.salePrice = salePrice;
	}
	public Integer getBuyNum() {
		return buyNum;
	}
	public void setBuyNum(Integer buyNum) {
		this.buyNum = buyNum;
	}
	
	public String getPoNo() {
		return poNo;
	}
	public void setPoNo(String poNo) {
		this.poNo = poNo;
	}
	public String getProdBarCode() {
		return prodBarCode;
	}
	public void setProdBarCode(String prodBarCode) {
		this.prodBarCode = prodBarCode;
	}
	public String getCommodityNo() {
		return commodityNo;
	}
	public void setCommodityNo(String commodityNo) {
		this.commodityNo = commodityNo;
	}
	public int getReturnNumber() {
		return returnNumber;
	}
	public void setReturnNumber(int returnNumber) {
		this.returnNumber = returnNumber;
	}
	public int getRetunStatus() {
		return retunStatus;
	}
	public void setRetunStatus(int retunStatus) {
		this.retunStatus = retunStatus;
	}
	public long getCommonNumner() {
		return commonNumner;
	}
	public void setCommonNumner(long commonNumner) {
		this.commonNumner = commonNumner;
	}
	public long getRemainingAmount() {
		return remainingAmount;
	}
	public void setRemainingAmount(long remainingAmount) {
		this.remainingAmount = remainingAmount;
	}
	public String getShelfLife() {
		return shelfLife;
	}
	public void setShelfLife(String shelfLife) {
		this.shelfLife = shelfLife;
	}
	public String getManufactureTime() {
		return manufactureTime;
	}
	public void setManufactureTime(String manufactureTime) {
		this.manufactureTime = manufactureTime;
	}
	public String getPoName() {
		return poName;
	}
	public void setPoName(String poName) {
		this.poName = poName;
	}
	public String getPoCreateTime() {
		return poCreateTime;
	}
	public void setPoCreateTime(String poCreateTime) {
		this.poCreateTime = poCreateTime;
	}
	public String getPrCreateTime() {
		return prCreateTime;
	}
	public void setPrCreateTime(String prCreateTime) {
		this.prCreateTime = prCreateTime;
	}
	public long getQualifiedQuantity() {
		return qualifiedQuantity;
	}
	public void setQualifiedQuantity(long qualifiedQuantity) {
		this.qualifiedQuantity = qualifiedQuantity;
	}
	public long getPreOccupyQuantity() {
		return preOccupyQuantity;
	}
	public void setPreOccupyQuantity(long preOccupyQuantity) {
		this.preOccupyQuantity = preOccupyQuantity;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((ppSupplierNo == null) ? 0 : ppSupplierNo.hashCode());
		result = prime * result
				+ ((ppWarehouseNo == null) ? 0 : ppWarehouseNo.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PurchaseRequisitionProductVo other = (PurchaseRequisitionProductVo) obj;
		if (ppSupplierNo == null) {
			if (other.ppSupplierNo != null)
				return false;
		} else if (!ppSupplierNo.equals(other.ppSupplierNo))
			return false;
		if (ppWarehouseNo == null) {
			if (other.ppWarehouseNo != null)
				return false;
		} else if (!ppWarehouseNo.equals(other.ppWarehouseNo))
			return false;
		return true;
	}
	
}
